package com.kingsoft.miot.bridge.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kingsoft.miot.bridge.pojo.hotel.HotelUris;

/**
 * 酒店 Uri 配置
 * 
 * @author HUJIANQING
 *
 */
@Configuration
public class HotelUriConfig {

	@Value("${miot.hotel.uris.addhome}")
	private String addHomeUri;

	@Value("${miot.hotel.uris.addroom}")
	private String addroomUri;

	@Value("miot.hotel.uris.getcontrolunitid")
	private String getcontrolunitid;
	
	@Bean
	public HotelUris hotelUris() {
		HotelUris hotelUris = new HotelUris();
		hotelUris.setAddHomeUri(addHomeUri);
		hotelUris.setAddroomUri(addroomUri);
		hotelUris.setGetControlUnitIdUri(getcontrolunitid);
		return hotelUris;
	}
}
